package wcu;
import java.util.Scanner;

public class TextUI implements UI {
	Scanner sc;

	public TextUI() {
		this.sc = new Scanner(System.in);
	}

	public void printMenu(String[] arrayOfCommands) {
		for (int i = 0; i < arrayOfCommands.length; i++) {
			System.out.println(arrayOfCommands[i]); // Prints menu
		}

	}

	@Override
	public void writeToConsole(String text) {
		System.out.println(text);

	}

	@Override
	public String getUserInput() {
		String userInput = sc.nextLine();
		;
		return userInput;
	}

}
